package com.yssw.client.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.yssw.common.annotation.Excel;
import com.yssw.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 充值记录对象 recharge_record
 *
 * @author ice
 * @date 2023-06-16
 */
public class RechargeRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 会员ID
     */
    @Excel(name = "会员ID")
    private Long memberId;

    /**
     * 金额
     */
    @Excel(name = "金额")
    private BigDecimal money;

    /**
     * 订单编号
     */
    @Excel(name = "订单编号")
    private String orderNo;

    /**
     * 支付方式
     */
    @Excel(name = "支付方式")
    private String payGate;

    /**
     * 支付通道订单号
     */
    @Excel(name = "支付通道订单号")
    private String payChannelOrderNo;

    /**
     * 状态,0表示未支付，1表示交易成功，2表示交易失败
     */
    @Excel(name = "状态,0表示未支付，1表示交易成功，2表示交易失败")
    private Long status;

    @TableField(exist = false)
    private String userName;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remarks;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setPayGate(String payGate) {
        this.payGate = payGate;
    }

    public String getPayGate() {
        return payGate;
    }

    public void setPayChannelOrderNo(String payChannelOrderNo) {
        this.payChannelOrderNo = payChannelOrderNo;
    }

    public String getPayChannelOrderNo() {
        return payChannelOrderNo;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getRemarks() {
        return remarks;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("memberId", getMemberId())
                .append("money", getMoney())
                .append("orderNo", getOrderNo())
                .append("payGate", getPayGate())
                .append("payChannelOrderNo", getPayChannelOrderNo())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("remarks", getRemarks())
                .append("userName", getUserName())
                .toString();
    }
}
